<%@ page import="org.icress.fusion.b2b.SalesOrder" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
    <g:set var="entityName" value="${message(code: 'b2b.salesOrder', default: 'SalesOrder')}" />
    <title><g:message code="b2b.salesOrder.create"/></title>
    <g:javascript src="jquery-ui-numeric-min.js"></g:javascript>
    <g:javascript src="my-numeric.js"></g:javascript>
</head>
<body>
<!--
    <div class="nav">
		<shiro:hasPermission permission="salesOrder:list">
        <span class="menuButton"><g:link class="list" action="list"><g:message code="b2b.salesOrder.list" /></g:link></span>
        </shiro:hasPermission>
    </div>
-->
    <div class="body">
        <h1><g:message code="b2b.salesOrder.create"/></h1>
        <g:if test="${flash.message}">
        	<div class="message">${flash.message}</div>
        </g:if>
        <g:hasErrors bean="${salesOrderInstance}">        
        <div class="errors">
            <g:renderErrors bean="${salesOrderInstance}" as="list" />
        </div>
        </g:hasErrors>
        <g:form action="save" >
            <div class="dialog">
				<g:render template="/b2b/salesOrder/edit_${pageLayoutName}" />
            </div>
            <div class="buttons">
            	<shiro:hasPermission permission="salesOrder:save">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'b2b.salesOrder.create', default: 'Create')}" /></span>
                </shiro:hasPermission>
            </div>
        </g:form>
    </div>
</body>
</html>
